﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Security
{
    public interface ISSoConnection
    {
        ISSoTokenLoginResponse TokenLogin(string username, string md5password, int timeoutMins);

        ISSoTokenLoginResponse TokenValidate(string token);

        ISSoTokenLoginResponse TokenExtend(string token);

        void TokenLogout(string token);

        ISSoLoginResponse Login(string username, string md5password);

        bool IsPermitted(string username, string md5password, string resourcename);
    }
}
